.class public final Lanalytics/a;
.super Ljava/lang/Object;


# static fields
.field private static a:Lcom/google/android/apps/analytics/j;

.field private static b:Ljava/lang/String;

.field private static c:Ljava/lang/String;

.field private static d:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const-string v0, "UA-35228877-2"

    sput-object v0, Lanalytics/a;->b:Ljava/lang/String;

    const-string v0, "UA-35228877-1"

    sput-object v0, Lanalytics/a;->c:Ljava/lang/String;

    return-void
.end method

.method public static a()V
    .locals 1

    sget-object v0, Lanalytics/a;->b:Ljava/lang/String;

    invoke-static {v0}, Lanalytics/a;->a(Ljava/lang/String;)V

    return-void
.end method

.method private static a(Ljava/lang/String;)V
    .locals 2

    sget-object v0, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    if-eqz v0, :cond_0

    invoke-static {}, Lanalytics/a;->b()V

    :cond_0
    invoke-static {}, Lcom/google/android/apps/analytics/j;->a()Lcom/google/android/apps/analytics/j;

    move-result-object v0

    sput-object v0, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v1

    invoke-virtual {v0, p0, v1}, Lcom/google/android/apps/analytics/j;->a(Ljava/lang/String;Landroid/content/Context;)V

    sput-object p0, Lanalytics/a;->d:Ljava/lang/String;

    return-void
.end method

.method protected static a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 3

    sget-object v0, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    invoke-static {}, Lkairo/android/ui/IApplication;->a()Lkairo/android/ui/IApplication;

    move-result-object v1

    sget-object v0, Lanalytics/a;->b:Ljava/lang/String;

    if-eqz p1, :cond_1

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_1

    sget-object v0, Lanalytics/a;->c:Ljava/lang/String;

    :cond_1
    sget-object v2, Lanalytics/a;->d:Ljava/lang/String;

    if-eqz v2, :cond_2

    sget-object v2, Lanalytics/a;->d:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_3

    :cond_2
    invoke-static {v0}, Lanalytics/a;->a(Ljava/lang/String;)V

    :cond_3
    if-nez p0, :cond_4

    const-string p0, ""

    :cond_4
    const-string v0, "/"

    invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_5

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v2, "/"

    invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    :cond_5
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v2, "/"

    invoke-direct {v0, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Lkairo/android/ui/IApplication;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    if-eqz p1, :cond_6

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_6

    sget-object v1, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    invoke-virtual {v1, p1}, Lcom/google/android/apps/analytics/j;->b(Ljava/lang/String;)Z

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_6
    sget-object v1, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    invoke-virtual {v1, v0}, Lcom/google/android/apps/analytics/j;->a(Ljava/lang/String;)V

    invoke-static {}, Lanalytics/a;->c()V

    goto :goto_0
.end method

.method public static b()V
    .locals 2

    const/4 v1, 0x0

    sget-object v0, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    if-eqz v0, :cond_0

    sget-object v0, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    invoke-virtual {v0}, Lcom/google/android/apps/analytics/j;->d()V

    :cond_0
    sput-object v1, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    sput-object v1, Lanalytics/a;->d:Ljava/lang/String;

    return-void
.end method

.method public static c()V
    .locals 1

    sget-object v0, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    if-eqz v0, :cond_0

    sget-object v0, Lanalytics/a;->a:Lcom/google/android/apps/analytics/j;

    invoke-virtual {v0}, Lcom/google/android/apps/analytics/j;->b()Z

    :cond_0
    return-void
.end method
